package net.zjitc.service;

import net.zjitc.pojo.Order;
import net.zjitc.pojo.OrderItem;
import net.zjitc.vo.OrderConditionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/4/9 8:13
 */
public interface OrderService {
    List<Order> findAll();

//    下载
    List<Order> findOrderByDate(String year, String month);
    List<OrderItem>findItemByOrderid(List<Order> orders);

    Order findById(String id);
    List<Order> findByCondition(OrderConditionVo vo);

    void delete(String id);
    List<Order> findByDayInInterval(String day);


    int add(Order order);

    List<Order> findOrderByUser(int id);


    void update_state(String id);
}
